package com.ah.hf.common;

import com.ah.hf.filter.LoginCheckFilter;

public class BaseContext {
    //request请求是一次线程，请求结束，里面的数据结束，可以通过该线程，进行传值
    private static ThreadLocal<Long> threadLocal = new ThreadLocal();
    public static void setUserId(Long id){
        threadLocal.set(id);
    }
    public static Long getUserId(){
        return threadLocal.get();
    }
}
